package edu.cis084.tools;

public class ListNode 
{
	private ListNode previous, next;
	private Object data;
	
	/**************
	 *Constructors*
	 **************/
	
	public ListNode()
	{
		previous = null;
		next=null;
		data=null;
	}
	
	public ListNode(Object newData)
	{
		previous = null;
		next = null;
		data = newData;
	}
	
	/*************
	 *Set Methods*
	 *************/
	
	public void setNext(ListNode nextNode)
	{
		next = nextNode;
	}
	
	public void setPrevious(ListNode prevNode)
	{
		previous = prevNode;
	}
	
	public void setData(Object newData)
	{
		data = newData;
	}
	
	/*************
	 *Get Methods*
	 *************/
	
	public ListNode getNext()
	{
		return next;
	}
	
	public ListNode getPrevious()
	{
		return previous;
	}
	
	public Object getData()
	{
		return data;
	}
	
}
